---
title: "SQL-011: Retrieve hearing location code list (hearing location screen)"
summary: Retrieve the hearing location code list for the hearing-location maintenance screen.
status: draft
owner: SAIF Documentation Pipeline
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
---

# SQL-011 Retrieve hearing location code list (hearing location screen)

Retrieves the full `HEARING_LOCATION_CODE` list, ordered by description, for the `LOCATIONCODESQL` code-table lookup used by the hearing-location maintenance UI. The SQL text is identical to [SQL-007](SQL-007-location-code-list.md) but is defined independently as a separate `Private Const` in `clsHearingLocationManager.vb`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-011 |
| **Operation type** | Read |
| **Execution method** | Inline SQL (`clsCodeCollection.GetCodeCollection`) |
| **Database** | Oracle |
| **Command type** | Text |
| **Business object** | N/A (Application layer) |
| **Criteria property** | N/A (Application layer) |
| **Lifecycle method** | N/A (Application layer) |
| **Application class** | `clsHearingLocationManager` |

## Parameters

No runtime parameters — this is a static code-table lookup constant (`LOCATIONCODESQL`), executed as-is via `clsCodeCollection.GetCodeCollection(DPI, LOCATIONCODESQL)`.

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [HEARING_LOCATION_CODE](../database-tables.md#hearing_location_code) | SELECT | `CODE`, `CODE_DESCR` |

## Sample SQL

```sql
SELECT code, code_descr
FROM HEARING_LOCATION_CODE
ORDER BY code_descr
```

## Operations and processes
- [Delete hearing location](../operations/delete-hearing-location.md)

## Business rules
- [BR-LGL-015: A hearing location cannot be deleted while in use](../business-rules.md#br-lgl-015-a-hearing-location-cannot-be-deleted-while-in-use)*

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- `SAIF.Application.Claim.Legal\clsHearingLocationManager.vb`
